<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
    //123
    /*var re=Number('123');
      alert( re);*/
        /*???????????????
         function jia(x,y){
         	 var x=7;
             var y=4;
         	return x+y;
         }

         alert(jia);*/

         // var re=jia(Number(prompt('请输入第一个数字')),(prompt('请输入第二个字')));
         // ?????????????????
         /*var re = jia(Number(prompt('请输入第一个数字')),Number(prompt('请输入第二个数字')));
         alert(re);*/
         /*var re=Number('3.2000000000000000000');
         alert(re);
         var ra=parseInt('3.5555');
         alert(ra);*/
         /*var re=parseInt('123px');
         alert(re);*/
           /*var re=isNaN('a');


           alert(re);*/
          //var re='2+3';
         /* var str='2+4';
          alert(eval(re));*/

          /*var shuiguo=['苹果','香蕉','梨'];
            alert(shuiguo[2]);
            shuiguo[3]='榴莲';
            //alert(shuiguo);
            document.write(shuiguo);*/

           /* 构造函数创建数组
           var re=new Array('苹果','橘子','西瓜','香蕉','榴莲','火龙果');
           // alert(re);
             alert(re[4]);*/


            /* var shuiguo=['苹果','橘子','西瓜','香蕉','榴莲','火龙果'];
             // alert(shuiguo.length);
              shuiguo[shuiguo.length]='lxd';
             // alert('shuiguo');
             document.write(shuiguo);
             shuiguo[9]='椰子';
             //document.write(shuiguo.length);
             alert(shuiguo.length);*/


             /*var shuiguo=['苹果','橘子','香蕉','梨','西瓜','椰子'];
             //document.write(shuiguo[3]);
             for(var i=0;i<shuiguo.length;i++){
             	document.write(shuiguo[i]+'、')*/

         /*var jingdian=[['少灵思','报公司','三峡大坝',],['故宫','天坛','天安门','颐和园'],['武当山','北戴河','避暑山庄']];


             	 // document.write(jingdian.length);
             	//alert(jingdian.length);
             	// document.write(jingdian[2][1]);
             	//alert(jingdian[2][1]);
             	for(var i=0;i<jingdian.length;i++)
             	{
             		for(var j=0;j<jingdian[i].length;j++)
             		{
             			document.write(jingdian[i][j]);
             		}
             		document.write('<br/>');
             	}

*/          	/*var iphone6 = {
				'size':'4.7吋',
				'color':'土豪金',
				'price':'998元',
				'call':function(){
					alert('能给女神打电话');
				},
				'wechat':function(){
					alert('摇一摇');
				}
			};


	 alert(iphone6.price);
	//iphone6.wechat();*/


                 /*function ren(){
                 	this.name='婴儿';
                 	this.speak = function(){
                 		alert('会说话');
                 	}
                 }
                 //ren.speak();
                 alert(ren.speak);*/

      /* function ren(){
		this.name = '婴儿';
		this.sex = '性别';
		this.height = '身高';
		this.weight = '体重';
		this.speak = function(){
			alert('会说话');
		}
		this.eat = function(){
			alert('会吃饭');
		}
	}*/

	/*var xiawa = new ren();
	//alert(xiawa.eat);
	xiawa.name='小弟';
	
	xiawa.dance = function(){
		alert('会跳舞');
	}


	var yadang = new ren();
	yadang.name = '亚当';
	yadang.sex = '男';
	yadang.tattoo = '蓝精灵';
alert(yadang.tattoo);*/



	var iphone6 = {
		'size':'4.7吋',
		'color':'土豪金',
		'price':'998元',
		'call':function(){
			alert('能给女神打电话');
		},
		'wechat':function(){
			alert('摇一摇');
		}
	};
	   alert(iphone6.color);
	for(x in iphone6){
		document.write(x+'=>'+iphone6[x]+'<br>');
	}
	</script>
</head>
<body>
	
</body>
</html>